#!/bin/sh
#
#
#
#
#

FILE=$1
#TITLE=$2
echo "Input file :${FILE}"
#echo "Plot title : ${TITLE}"
gnuplot -persist << EOF
#set boxwidth 0.9 absolute
set term post eps
set output "${FILE}.ps"
set title "Unicast / #Members"
set xlabel "#Members"
set ylabel "#Unicast messages"
set style data boxes
#set style histogram
# it will always fit in this range
set nokey
set xtics ("" 0, "5" 1, "10" 2, "20" 3, "50" 4, "" 5)
set auto x
set size 0.5,1
#plot "${FILE}" u 3:5
plot "${FILE}" u 5

pause -1
EOF
